﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    /// <summary>
    /// 实体类TB_SignUpStudentsNetPayFee_Head 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_SignUpStudentsNetPayFee_Head : Entity
    {
        public TB_SignUpStudentsNetPayFee_Head() : base("TB_SignUpStudentsNetPayFee_Head") { _OrdNO = Guid.NewGuid().ToString(); }

        #region Model
        private string _OrdNO;
        private string _SignUpID;
        private decimal? _Sum_Charge;
        private DateTime _ChargDate;
        private string _PaySource;
        private string _ExamYear;
        private string _ChargeUserID;
        private string _ChargeIP;
        private string _IsFee;
        private string _IsFeeSuccess;
        private string _Trade_no;
        private string _Buyer_email;
        private string _Body;
        private DateTime? _Gmt_create;
        private DateTime? _Gmt_payment;
        private string _Trade_status;
        private decimal? _Total_fee;
        private decimal? _Price;
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrdNO
        {
            get { return _OrdNO; }
            set
            {
                this.OnPropertyValueChange(_.OrdNO, _OrdNO, value);
                this._OrdNO = value;
            }
        }
        /// <summary>
        /// 考生ID
        /// </summary>
        public string SignUpID
        {
            get { return _SignUpID; }
            set
            {
                this.OnPropertyValueChange(_.SignUpID, _SignUpID, value);
                this._SignUpID = value;
            }
        }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal? Sum_Charge
        {
            get { return _Sum_Charge; }
            set
            {
                this.OnPropertyValueChange(_.Sum_Charge, _Sum_Charge, value);
                this._Sum_Charge = value;
            }
        }
        /// <summary>
        /// 订单日期
        /// </summary>
        public DateTime ChargDate
        {
            get { return _ChargDate; }
            set
            {
                this.OnPropertyValueChange(_.ChargDate, _ChargDate, value);
                this._ChargDate = value;
            }
        }
        /// <summary>
        /// 付款来源(微信,支付宝,网银,现金)
        /// </summary>
        public string PaySource
        {
            get { return _PaySource; }
            set
            {
                this.OnPropertyValueChange(_.PaySource, _PaySource, value);
                this._PaySource = value;
            }
        }
        /// <summary>
        /// 考试年度
        /// </summary>
        public string ExamYear
        {
            get { return _ExamYear; }
            set
            {
                this.OnPropertyValueChange(_.ExamYear, _ExamYear, value);
                this._ExamYear = value;
            }
        }
        /// <summary>
        /// 收费人ID
        /// </summary>
        public string ChargeUserID
        {
            get { return _ChargeUserID; }
            set
            {
                this.OnPropertyValueChange(_.ChargeUserID, _ChargeUserID, value);
                this._ChargeUserID = value;
            }
        }
        /// <summary>
        /// 收费电脑IP
        /// </summary>
        public string ChargeIP
        {
            get { return _ChargeIP; }
            set
            {
                this.OnPropertyValueChange(_.ChargeIP, _ChargeIP, value);
                this._ChargeIP = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string IsFee
        {
            get { return _IsFee; }
            set
            {
                this.OnPropertyValueChange(_.IsFee, _IsFee, value);
                this._IsFee = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string IsFeeSuccess
        {
            get { return _IsFeeSuccess; }
            set
            {
                this.OnPropertyValueChange(_.IsFeeSuccess, _IsFeeSuccess, value);
                this._IsFeeSuccess = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Trade_no
        {
            get { return _Trade_no; }
            set
            {
                this.OnPropertyValueChange(_.Trade_no, _Trade_no, value);
                this._Trade_no = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Buyer_email
        {
            get { return _Buyer_email; }
            set
            {
                this.OnPropertyValueChange(_.Buyer_email, _Buyer_email, value);
                this._Buyer_email = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Body
        {
            get { return _Body; }
            set
            {
                this.OnPropertyValueChange(_.Body, _Body, value);
                this._Body = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? Gmt_create
        {
            get { return _Gmt_create; }
            set
            {
                this.OnPropertyValueChange(_.Gmt_create, _Gmt_create, value);
                this._Gmt_create = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? Gmt_payment
        {
            get { return _Gmt_payment; }
            set
            {
                this.OnPropertyValueChange(_.Gmt_payment, _Gmt_payment, value);
                this._Gmt_payment = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Trade_status
        {
            get { return _Trade_status; }
            set
            {
                this.OnPropertyValueChange(_.Trade_status, _Trade_status, value);
                this._Trade_status = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? Total_fee
        {
            get { return _Total_fee; }
            set
            {
                this.OnPropertyValueChange(_.Total_fee, _Total_fee, value);
                this._Total_fee = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal? Price
        {
            get { return _Price; }
            set
            {
                this.OnPropertyValueChange(_.Price, _Price, value);
                this._Price = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.OrdNO};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.OrdNO,
				_.SignUpID,
				_.Sum_Charge,
				_.ChargDate,
				_.PaySource,
				_.ExamYear,
				_.ChargeUserID,
				_.ChargeIP,
				_.IsFee,
				_.IsFeeSuccess,
				_.Trade_no,
				_.Buyer_email,
				_.Body,
				_.Gmt_create,
				_.Gmt_payment,
				_.Trade_status,
				_.Total_fee,
				_.Price};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._OrdNO,
				this._SignUpID,
				this._Sum_Charge,
				this._ChargDate,
				this._PaySource,
				this._ExamYear,
				this._ChargeUserID,
				this._ChargeIP,
				this._IsFee,
				this._IsFeeSuccess,
				this._Trade_no,
				this._Buyer_email,
				this._Body,
				this._Gmt_create,
				this._Gmt_payment,
				this._Trade_status,
				this._Total_fee,
				this._Price};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._OrdNO = DataUtils.ConvertValue<string>(reader["OrdNO"]);
            this._SignUpID = DataUtils.ConvertValue<string>(reader["SignUpID"]);
            this._Sum_Charge = DataUtils.ConvertValue<decimal?>(reader["Sum_Charge"]);
            this._ChargDate = DataUtils.ConvertValue<DateTime>(reader["ChargDate"]);
            this._PaySource = DataUtils.ConvertValue<string>(reader["PaySource"]);
            this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
            this._ChargeUserID = DataUtils.ConvertValue<string>(reader["ChargeUserID"]);
            this._ChargeIP = DataUtils.ConvertValue<string>(reader["ChargeIP"]);
            this._IsFee = DataUtils.ConvertValue<string>(reader["IsFee"]);
            this._IsFeeSuccess = DataUtils.ConvertValue<string>(reader["IsFeeSuccess"]);
            this._Trade_no = DataUtils.ConvertValue<string>(reader["trade_no"]);
            this._Buyer_email = DataUtils.ConvertValue<string>(reader["buyer_email"]);
            this._Body = DataUtils.ConvertValue<string>(reader["body"]);
            this._Gmt_create = DataUtils.ConvertValue<DateTime?>(reader["gmt_create"]);
            this._Gmt_payment = DataUtils.ConvertValue<DateTime?>(reader["gmt_payment"]);
            this._Trade_status = DataUtils.ConvertValue<string>(reader["trade_status"]);
            this._Total_fee = DataUtils.ConvertValue<decimal?>(reader["total_fee"]);
            this._Price = DataUtils.ConvertValue<decimal?>(reader["price"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._OrdNO = DataUtils.ConvertValue<string>(row["OrdNO"]);
            this._SignUpID = DataUtils.ConvertValue<string>(row["SignUpID"]);
            this._Sum_Charge = DataUtils.ConvertValue<decimal?>(row["Sum_Charge"]);
            this._ChargDate = DataUtils.ConvertValue<DateTime>(row["ChargDate"]);
            this._PaySource = DataUtils.ConvertValue<string>(row["PaySource"]);
            this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
            this._ChargeUserID = DataUtils.ConvertValue<string>(row["ChargeUserID"]);
            this._ChargeIP = DataUtils.ConvertValue<string>(row["ChargeIP"]);
            this._IsFee = DataUtils.ConvertValue<string>(row["IsFee"]);
            this._IsFeeSuccess = DataUtils.ConvertValue<string>(row["IsFeeSuccess"]);
            this._Trade_no = DataUtils.ConvertValue<string>(row["trade_no"]);
            this._Buyer_email = DataUtils.ConvertValue<string>(row["buyer_email"]);
            this._Body = DataUtils.ConvertValue<string>(row["body"]);
            this._Gmt_create = DataUtils.ConvertValue<DateTime?>(row["gmt_create"]);
            this._Gmt_payment = DataUtils.ConvertValue<DateTime?>(row["gmt_payment"]);
            this._Trade_status = DataUtils.ConvertValue<string>(row["trade_status"]);
            this._Total_fee = DataUtils.ConvertValue<decimal?>(row["total_fee"]);
            this._Price = DataUtils.ConvertValue<decimal?>(row["price"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_SignUpStudentsNetPayFee_Head");
            /// <summary>
            /// 订单编号
            /// </summary>
            public readonly static Field OrdNO = new Field("OrdNO", "TB_SignUpStudentsNetPayFee_Head", "订单编号");
            /// <summary>
            /// 考生ID
            /// </summary>
            public readonly static Field SignUpID = new Field("SignUpID", "TB_SignUpStudentsNetPayFee_Head", "考生ID");
            /// <summary>
            /// 总价
            /// </summary>
            public readonly static Field Sum_Charge = new Field("Sum_Charge", "TB_SignUpStudentsNetPayFee_Head", "总价");
            /// <summary>
            /// 订单日期
            /// </summary>
            public readonly static Field ChargDate = new Field("ChargDate", "TB_SignUpStudentsNetPayFee_Head", "订单日期");
            /// <summary>
            /// 付款来源(微信,支付宝,网银,现金)
            /// </summary>
            public readonly static Field PaySource = new Field("PaySource", "TB_SignUpStudentsNetPayFee_Head", "付款来源(微信,支付宝,网银,现金)");
            /// <summary>
            /// 考试年度
            /// </summary>
            public readonly static Field ExamYear = new Field("ExamYear", "TB_SignUpStudentsNetPayFee_Head", "考试年度");
            /// <summary>
            /// 收费人ID
            /// </summary>
            public readonly static Field ChargeUserID = new Field("ChargeUserID", "TB_SignUpStudentsNetPayFee_Head", "收费人ID");
            /// <summary>
            /// 收费电脑IP
            /// </summary>
            public readonly static Field ChargeIP = new Field("ChargeIP", "TB_SignUpStudentsNetPayFee_Head", "收费电脑IP");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field IsFee = new Field("IsFee", "TB_SignUpStudentsNetPayFee_Head", "IsFee");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field IsFeeSuccess = new Field("IsFeeSuccess", "TB_SignUpStudentsNetPayFee_Head", "IsFeeSuccess");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Trade_no = new Field("trade_no", "TB_SignUpStudentsNetPayFee_Head", "trade_no");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Buyer_email = new Field("buyer_email", "TB_SignUpStudentsNetPayFee_Head", "buyer_email");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Body = new Field("body", "TB_SignUpStudentsNetPayFee_Head", "body");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Gmt_create = new Field("gmt_create", "TB_SignUpStudentsNetPayFee_Head", "gmt_create");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Gmt_payment = new Field("gmt_payment", "TB_SignUpStudentsNetPayFee_Head", "gmt_payment");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Trade_status = new Field("trade_status", "TB_SignUpStudentsNetPayFee_Head", "trade_status");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Total_fee = new Field("total_fee", "TB_SignUpStudentsNetPayFee_Head", "total_fee");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Price = new Field("price", "TB_SignUpStudentsNetPayFee_Head", "price");
        }
        #endregion


    }
}


